﻿using System;
using UnityEngine;

// Token: 0x02000334 RID: 820
internal class CityActorCollider : MonoBehaviour
{
	// Token: 0x0600152E RID: 5422 RVA: 0x00089E64 File Offset: 0x00088064
	private void OnTriggerEnter(Collider other)
	{
		Humanoid componentInParent = other.GetComponentInParent<Humanoid>();
		if (componentInParent != null)
		{
			this.CityManager.RegisterActor(componentInParent);
		}
	}

	// Token: 0x0600152F RID: 5423 RVA: 0x00089E90 File Offset: 0x00088090
	private void OnTriggerExit(Collider other)
	{
		Humanoid component = other.GetComponent<Humanoid>();
		if (component != null)
		{
			this.CityManager.UnregistorActor(component);
		}
	}

	// Token: 0x06001530 RID: 5424 RVA: 0x00089EBC File Offset: 0x000880BC
	public void RegisterCityHandler(CityPopulationManager popManager)
	{
		this.CityManager = popManager;
	}

	// Token: 0x040017DC RID: 6108
	private CityPopulationManager CityManager;
}
